<template>
    <div class="common-layout">
      <sweet-container>
        <sweet-aside width="200px">Aside</sweet-aside>
        <sweet-container direction="vertical">
          <sweet-header>Header</sweet-header>
          <sweet-main>Main</sweet-main>
          <sweet-footer>Footer</sweet-footer>
        </sweet-container>
      </sweet-container>
    </div>
</template>
<style lang="less" scoped>
.common-layout {
  margin-bottom: 10px;
}
.sweet-header {
  background-color: #f4f4f4;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.sweet-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.sweet-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.sweet-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .sweet-container {
  margin-bottom: 40px;
}

.sweet-container:nth-child(5) .sweet-aside,
.sweet-container:nth-child(6) .sweet-aside {
  line-height: 260px;
}

.sweet-container:nth-child(7) .sweet-aside {
  line-height: 320px;
}


.el-header {
  background-color: #f4f4f4;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>

